<!--#begin departementlist -->
<table align="center" border="0" cellpadding="2" cellspacing="0" width="95%">
    <tbody>
        <tr> 
            <td align="center" valign="middle"> 
                <table align="center" border="0" cellpadding="5" cellspacing="0" width="100%">
                    <tbody>
                        <tr> 
                            <td class="BabSiteAdminTitleFontBackground" nowrap="nowrap" valign="middle" width="45%">{ departementLabel }</td>
                            <td class="BabSiteAdminTitleFontBackground" nowrap="nowrap" valign="middle" width="45%">{ directorLabel }</td>
                            <?php 
                            if( bab_isAccessValid('unsDepartement_rights_groups', 1000)) {
                            ?>
                            <td class="BabSiteAdminTitleFontBackground" nowrap="nowrap" valign="middle" width="5"></td>
                            <?php 
                            }
                            ?>
                            <?php 
                            if( bab_isAccessValid('unsDepartement_rights_groups', 1000)) {
                            ?>
                            <td class="BabSiteAdminTitleFontBackground" nowrap="nowrap" valign="middle" width="5"></td>
                            <?php 
                            }
                            ?>
                        </tr>
                        <!--#in nextrow -->
                        <!--#if bred -->
                        <tr bgcolor="#D4F8F8">
                        <!--#else bred -->
                        <tr>
                        <!--#endif bred -->
                            <td nowrap="nowrap" valign="middle">{ departement[name] }</td>
                            <td nowrap="nowrap" valign="middle">{ director }</td>
                            <?php 
                            if( bab_isAccessValid('unsDepartement_rights_groups', 1000)) {
                            ?>
                            <td><a href="{ babAddonUrl }user&idx=departement&do=delete&idDept={ departement[id] }" onclick="return(confirm('Etes-vous sur de vouloir supprimer cette entree?'));"><img src="{ babSkinPath }images/Puces/del.gif"/></a></td>
                            <?php 
                            }
                            ?>
                            <?php 
                            if( bab_isAccessValid('unsDepartement_rights_groups', 1000)) {
                            ?>
                            <td><a href="{ babAddonUrl }user&idx=departement&do=editDepartement&idDept={ departement[id] }"><img src="{ babSkinPath }images/Puces/edit.gif"/></a></td>
                            <?php 
                            }
                            ?>
                        </tr>
                        <!--#endin nextrow -->
                    </tbody>
                </table>
            </td>
        </tr>
    </tbody>
</table>
<!--#end departementlist -->

<!--#begin addForm -->
<form name="addDepartement" method="post" action="{ babPhpSelf }">
    <input type="hidden" name="tg" value="{ babAddonTarget }/user">
    <input type="hidden" name="idx" value="departement">

    <table width="50%" border="0" cellspacing="0" cellpadding="2" align="center">
        <tr>
            <td class="BabLoginCadreBackground" align="center" valign="middle">
                <table class="BabLoginMenuBackground" width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
                    <tr> 
                        <td align="right">{ departementLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td><input type="text" name="departementName" size="30" maxlength="60"></td>
                    </tr>
                    <tr> 
                        <td align="right">{ directorLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td>
                            <select name="directorID">
                                <!--#in nextStaff -->
                                <option value="{ staff[id] }">{ staff[name] }</option>
                                <!--#endin nextStaff -->
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center"><input type="submit" name="addDepartementSubmit" value="{ addDepartementButton }"></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</form>
<!--#end addForm -->

<!--#begin editForm -->
<form name="editForm" method="post" action="{ babPhpSelf }">
    <input type="hidden" name="tg" value="{ babAddonTarget }/user">
    <input type="hidden" name="idx" value="departement">
    <input type="hidden" name="idDept" value="{ departement[id] }">

    <table width="50%" border="0" cellspacing="0" cellpadding="2" align="center">
        <tr>
            <td class="BabLoginCadreBackground" align="center" valign="middle">
                <table class="BabLoginMenuBackground" width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
                    <tr> 
                        <td align="right">{ departementLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td><input type="text" name="departementName" value="{ departement[name] }" size="30" maxlength="60"></td>
                    </tr>
                    <tr> 
                        <td align="right">{ directorLabel }<span class="mandatory_star" style="color:red">*</span>:</td>
                        <td>
                            <select name="directorID">
                                <!--#in nextStaff -->
                                <option value="{ staff[id] }">{ staff[name] }</option>
                                <!--#endin nextStaff -->
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center"><input type="submit" name="editDepartementSubmit" value="{ editDepartementButton }"></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</form>
<!--#end editForm -->
